<template>
  <div class="index">
    <div class="main">
      <router-view />
    </div>
    <div class="footer">
      <van-tabbar route placeholder >
        <van-tabbar-item icon="home-o" to="/index/home">首页</van-tabbar-item>
        <van-tabbar-item icon="search" to="/index/class">列表</van-tabbar-item>
      </van-tabbar>
    </div>
  </div>
</template>

<script>
export default {
  name: "index",

  data() {
    return {};
  },

  mounted() {},

  methods: {},
};
</script>

<style lang="scss" scoped>
.index {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  .main{
      flex: 1;
  }
}
</style>